home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Utilities / Converters / Convert_RTF / Source / rtfController.h < prev    next >
Text File  |  1995-06-12  |  3KB  |  106 lines

  1. /***********************************************************************\
  2. Controller class for Convert RTF which converts between Mac and NeXT rtf formats.
  3. Copyright (C) 1993 David John Burrowes
  4.  
  5. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version.
  6.  
  7. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
  8.  
  9. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  10.  
  11. The author, David John Burrowes, can be reached at:
  12.     davidjohn@kira.net.netcom.com
  13.     David John Burrowes
  14.     1926 Ivy #10
  15.     San Mateo, CA 94403-1367
  16. \***********************************************************************/
  17.  
  18. /*
  19. ====================================================================
  20.     This is $Revision: 1.8 $ of this file
  21.     It was last modified by $Author: death $ on $Date: 93/04/04 23:28:25 $
  22. Note that this file was created while using the New Century Schoolbook Roman typeface.  You may find that some things line up strangely if you don't use that family.
  23. $Log:    rtfController.h,v $
  24.  * Revision 1.8  93/04/04  23:28:25  death
  25.  * Sun Apr  4 23:28:25 PDT 1993
  26.  * 
  27.  * Revision 1.7  93/02/21  12:00:02  death
  28.  * Sun Feb 21 12:00:02 PST 1993
  29.  * 
  30.  * Revision 1.6  93/01/10  08:27:27  death
  31.  * Sun Jan 10 08:27:27 PST 1993
  32.  * 
  33.  * Revision 1.5  93/01/02  23:41:35  death
  34.  * Sat Jan  2 23:41:35 PST 1993
  35.  * 
  36.  * Revision 1.4  93/01/02  13:39:05  death
  37.  * Sat Jan  2 13:39:05 PST 1993
  38.  * 
  39.  * Revision 1.3  92/12/25  16:26:48  death
  40.  * Fri Dec 25 16:26:48 PST 1992
  41.  * 
  42.  * Revision 1.2  92/12/21  07:01:15  death
  43.  * Mon Dec 21 07:01:14 PST 1992
  44.  * 
  45.  * Revision 1.1  92/12/19  08:19:09  death
  46.  * Sat Dec 19 08:19:08 PST 1992
  47.  * 
  48.  * 
  49.  ====================================================================
  50.  */
  51. #import "ConvertController.h"
  52. //
  53. //    Defines for names of preferences in the defaults database
  54. //
  55. #define    CONVERTTYPE            "ConvertAsMacRTF"
  56. #define    REMOVEUNDERLINE    "RemoveFirstUnderline"
  57. #define    CONVERTTEXT            "ConvertAllFonts"
  58. #define    CONVERTQUOTES        "LeaveQuotesUnaltered"
  59. #define    CONVERTPICTS            "ConvertMacPictures"
  60. #define    DELETEPICTS            "DeletePictures"
  61.  
  62. #import "rtfConverter.h"    // For the convert type...
  63.  
  64. @interface    rtfController:ConvertController
  65. {
  66.  
  67.     id    destFileHolder;
  68.  
  69.     id    MacConvertCommand;
  70.     id    NeXTConvertCommand;
  71.  
  72.     id    MacSourceButton;
  73.     id    RemoveUnderlineButton;
  74.     id    ConvertAllFontsButton;
  75.     id    ConvertSingleQuotesButton;
  76.     id    ConvertPictButton;
  77.     id    DeletePictDataButton;
  78.     
  79.     Boolean    convertMacRTF;
  80.     Boolean    StripFirstUL0;
  81.     GuiConvertChoices    ConvertAllFonts;
  82.     Boolean    ConvertSingleQuotes;
  83.     Boolean    MenuOpen;
  84.     Boolean    DeletePictData;
  85.     Boolean    ConvertPictData;
  86. }
  87.  
  88.  
  89. - init;
  90. - free;
  91. - appWillTerminate: sender;
  92. - PrepareForNeXTConversion: sender;
  93. - PrepareForMacConversion: sender;
  94. - ConvertFrom: sourceFile To: destinationFile;
  95. - displayPreferences: sender;
  96. - ChangeConvertSource: sender;
  97. - SetUnderlineRemoval: sender;
  98. - SetFontConversion: sender;
  99. - SetSingleQuoteChange: sender;
  100. - SetPictDataDeletion: sender;
  101. - SetPictConversion: sender;
  102. - openDestFile: (roCString) theFile;
  103. - openSourceFile: (roCString) theFile;
  104.  
  105. - MakeDestAnRTFD;
  106. @end